home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / STRINGS / PACKAGE6 / INTTOSTR.DOC < prev    next >
Text File  |  1990-07-25  |  1KB  |  38 lines

  1. -------------------------------------------------------------------------------
  2. ChangeIntegerToString
  3. -------------------------------------------------------------------------------
  4.  
  5. declaration:       procedure ChangeIntegerToString (    IntegerNumber:
  6.                                                           integer;
  7.                                                     var ResultString:
  8.                                                           TypeString);
  9.  
  10. purpose:           Converts the given integer into string format
  11.  
  12. precondition:      ResultString has been initialized
  13.  
  14. postcondition:     ResultString is filled with the value contained in
  15.                    IntegerNumber
  16.  
  17. special cases:     none
  18.  
  19. example:           var
  20.                      Number:
  21.                        integer;
  22.                      AString:
  23.                        TypeString;
  24.  
  25.                    begin
  26.                      .
  27.                      .
  28.                      .
  29.                      write (output,'Enter a number: ');
  30.                      readln (input, Number);
  31.                      ChangeIntegerToString (Integer, AString);
  32.                      .
  33.                      .
  34.                      .
  35.                    end
  36.  
  37. -------------------------------------------------------------------------------
  38.